package com.mgzf.upload.controller;

import com.mgzf.upload.service.api.IUploadTestService;
import com.mgzf.upload.service.dto.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by mike on 18/1/19.
 */
@RestController
@RequestMapping("test")
public class TestController {
    @Autowired
    private IUploadTestService uploadTestService;
    @RequestMapping("test1")
    public String test() {
        User user = uploadTestService.getUser();
        System.out.println("fdsafdsa");
        return "test";
    }
}
